import Components from 'unplugin-vue-components/vite'
import {
    AntDesignVueResolver
} from 'unplugin-vue-components/resolvers'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
    devtools: {enabled: true},
    css: ['~/assets/css/main.css'],
    vite: {
        plugins: [
            Components({
                resolvers: [
                    AntDesignVueResolver({
                        importStyle: 'less'
                    }),

                ],
            })
        ],
        css: {
            preprocessorOptions: {
                less: {
                    modifyVars: {
                        'primary-color': '#ea6f5a',
                    },
                    javascriptEnabled: true,
                }
            }
        },
        ssr:{
          noExternal:['ant-design-vue']
        }
    },
    modules:['@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt', "@nuxt/image"],
    postcss: {
        plugins: {
            tailwindcss: {},
            autoprefixer: {},
        },
    },
    image: {
        // Options
    }
})